test: Use common.expectsError in tests#17484
test: Use common.expectsError in tests#17484mithunsasidharan wants to merge 1 commit intonodejs:masterfrom mithunsasidharan:common_3
Conversation
|
Hi @mithunsasidharan — thank you for contributing. Could you use the checklist in your PR to indicate which changes have happened or whether you've run the tests locally? It seems like all your PRs have the checkboxes completely unchecked. In general, it's helpful to at least run |
|
@apapirovski : Sorry for missing out on that. I usually run all test for any changes I make |
apapirovski
left a comment
There was a problem hiding this comment.
LGTM. Thanks for updating the checklist 👍
|
CI: https://ci.nodejs.org/job/node-test-pull-request/11985/ CI was a little wonky the last time, just running again to be safe. |
|
Landed in d8c896c |
PR-URL: #17484 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
PR-URL: #17484 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
PR-URL: #17484 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
Refactored tests to replace
assert.throws(fn, common.expectsError(err)); withcommon.expectsError(fn, err);in following test files :Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test